package com.taxicalculator.dao;

import android.content.Context;

/**
 * 
 * @author Thomas Maco
 *
 */
public interface ITaxiCalculatorDAO {
	/**
	 * Will find the distance in miles between two locations
	 * @param x location From
	 * @param y location To
	 * @return float miles in between location x and location y
	 * @throws Exception
	 */
	public double getDistance (String toAddress, Context cxt) throws Exception; 
	
	/**
	 * fetches old addresses for the From from the database
	 * @return list of all addresses in database
	 * @throws Exception
	 */
	public String getAddress(double latitude, double longitude) throws Exception;
}
